<?php
namespace app\common\entity;
use think\Http;
use think\Response;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/9/29 0029
 * Time: 10:52
 */
class Result{
    public static function success($data){
        return Response::create($data,'json',200);
    }

    //用511 表示未登录
    public static function error($msg,$code = 400){
        return Response::create($msg,'json',$code);
    }

}